package com.fun_ordering.mapper;

import com.fun_ordering.pojo.DishRatio;
import com.fun_ordering.pojo.DishRatioExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DishRatioMapper {
    int countByExample(DishRatioExample example);

    int deleteByExample(DishRatioExample example);

    int deleteByPrimaryKey(Integer ratioId);

    int insert(DishRatio record);

    int insertSelective(DishRatio record);

    List<DishRatio> selectByExample(DishRatioExample example);

    DishRatio selectByPrimaryKey(Integer ratioId);

    int updateByExampleSelective(@Param("record") DishRatio record, @Param("example") DishRatioExample example);

    int updateByExample(@Param("record") DishRatio record, @Param("example") DishRatioExample example);

    int updateByPrimaryKeySelective(DishRatio record);

    int updateByPrimaryKey(DishRatio record);

    List<DishRatio> selectByDishId(Integer dishId);
}